package com.shopping.user.service.impl;

import com.shopping.user.dao.UserDao;
import com.shopping.user.pojo.User;
import com.shopping.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author liaokang
 * @version 1.0
 * @date 2020/6/3 19:08
 */
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public User findUserByU_name(String u_name) {
        User u = new User();
        u.setU_name(u_name);
        return userDao.selectOne(u);
    }
}
